LINALG
Source Files
Modules
Procedures
Derived Types
identity
Function
10 statements
Source File
linalg_basic.f90
linalg_basic
identity
Contents
public pure function identity(n) result(rst)
Constructs an N-by-N identity matrix.
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=int32),
intent(in)
::
n
The size of the matrix.
Return Value
real(kind=real64), allocatable, dimension(:,:)
The resulting matrix.